package com.example.designpatterns.model.visitor;

/**
 * Created by zyy on 2022/1/6.
 */
public class Extractor implements Visitor{

    @Override
    public void visit(PPTFile pptFile) {
        //...
        System.out.println("Extract PPT.");
    }

    @Override
    public void visit(PdfFile pdfFile) {
        //...
        System.out.println("Extract PDF.");
    }

    @Override
    public void visit(WordFile wordFile) { //...
        System.out.println("Extract WORD.");
    }
}
